import request from '@/plugins/axios'

let apiPrefix = "/content";

export function getPage(page, query) {
    return request({
        url: apiPrefix + '/page',
        method: 'post',
        data: query,
        params: page
    })
}

export function getBanners() {
    return request({
        url: apiPrefix + '/banners',
        method: 'get',
    })
}

export function getLatestWztj() {
    return request({
        url: apiPrefix + '/latestWztj',
        method: 'get',
    })
}

export function getLatestXxgk() {
    return request({
        url: apiPrefix + '/latestXxgk',
        method: 'get',
    })
}


export function getLatestSpxw() {
    return request({
        url: apiPrefix + '/latestSpxw',
        method: 'get',
    })
}

export function getLatestJsky() {
    return request({
        url: apiPrefix + '/latestJsky',
        method: 'get',
    })
}


export function getLatestGzz() {
    return request({
        url: apiPrefix + '/latestGzz',
        method: 'get',
    })
}


export function getLatestJzxx() {
    return request({
        url: apiPrefix + '/latestJzxx',
        method: 'get',
    })
}

export function getLatestMsfc() {
    return request({
        url: apiPrefix + '/latestMsfc',
        method: 'get',
    })
}

export function getLatestYcjy() {
    return request({
        url: apiPrefix + '/latestYcjy',
        method: 'get',
    })
}

export function getInfo(sno) {
    return request({
        url: apiPrefix + '/' + sno,
        method: 'get',
    })
}

export function getLatestJyky(sno) {
    return request({
        url: apiPrefix + '/latestJyky',
        method: 'get',
    })
}


export function getSchools() {
    return request({
        url: apiPrefix + '/schools',
        method: 'get',
    })
}
